import {t, api, message, bs} from "@/service/index.js"


export default {
    url: {
        toLocal: "/BigFile/toLocal",
        uploadStrategy: "/BigFile/uploadStrategy",

        uploadLocalBatch: "/BigFile/uploadLocalBatch",
        uploadStrategyBatch: "/BigFile/uploadStrategyBatch"
    },
    // data = {BigFile: , ...}
    toLocal(data) {
        return api.upload(this.url.toLocal, data)
    },
    // data = {BigFile: , ...}
    uploadStrategy(data) {
        return api.upload(this.url.uploadStrategy, data)
    },

    // data = {files: , ...}
    uploadLocalBatch(data) {
        return api.upload(this.url.uploadLocalBatch, data)
    },
    // data = {files: , ...}
    uploadStrategyBatch(data) {
        return api.upload(this.url.uploadStrategyBatch, data)
    },
}